package com.xhtt.modules.reportform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhtt.common.utils.DoubleInfo;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.modules.reportform.model.InsEveryoneReport;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * <p>
 * 巡检统计
 * </p>
 *
 * @author xj
 * @since 2019-02-14
 */
public interface InsReportService extends IService<InsEveryoneReport> {

    // 每人完成情况
    PageUtils queryInsEveryone(Map<String, Object> params);

    // 导出每人完成情况
    void exportEveryone(HttpServletResponse response, Map<String, Object> params);

    // 每班完成情况
    PageUtils queryInsEveryTeam(Map<String, Object> params);

    // 导出每班完成情况
    void exportEveryTeam(HttpServletResponse response, Map<String, Object> params);

    // app 每人一天巡检总时间以及任务数
    PageUtils queryEverydayTotal(Map<String, Object> params);

    // 一天巡检完成和未完成数量
    DoubleInfo<Integer, Integer> queryEverydayInsCase(Map<String, Object> params);
}
